home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / vistrisp / frmtest.frm (.txt) next >
Encoding:
Visual Basic Form  |  1998-09-03  |  1.5 KB  |  44 lines

  1. VERSION 5.00
  2. Object = "*\ATriSpaceCtl.vbp"
  3. Begin VB.Form frmTest 
  4.    Caption         =   "CNS Visual TriSpace ActiveX Sample Application"
  5.    ClientHeight    =   4695
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   5865
  9.    Icon            =   "frmTest.frx":0000
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4695
  12.    ScaleWidth      =   5865
  13.    StartUpPosition =   3  'Windows Default
  14.    Begin TriSpaceCtl.TriSpace TriSpace1 
  15.       Height          =   5100
  16.       Left            =   0
  17.       TabIndex        =   0
  18.       Top             =   0
  19.       Width           =   5985
  20.       _ExtentX        =   10557
  21.       _ExtentY        =   8996
  22.    End
  23. Attribute VB_Name = "frmTest"
  24. Attribute VB_GlobalNameSpace = False
  25. Attribute VB_Creatable = False
  26. Attribute VB_PredeclaredId = True
  27. Attribute VB_Exposed = False
  28. Private Sub Form_Load()
  29.     'Create a simple cube
  30.     TriSpace1.CreateSquare -30, -30, -30, 30, 30, -30, 255, 0, 0
  31.     TriSpace1.CreateSquare 30, -30, 30, -30, 30, 30, 255, 255, 0
  32.     TriSpace1.CreateSquare -30, -30, 30, -30, 30, -30, 0, 0, 255
  33.     TriSpace1.CreateSquare 30, -30, -30, 30, 30, 30, 0, 255, 0
  34.     TriSpace1.CreateSquare -30, 30, -30, 30, 30, 30, 0, 0, 255
  35.     TriSpace1.CreateSquare -30, -30, 30, 30, -30, -30, 0, 0, 0
  36.     'Set the virtual camera
  37.     TriSpace1.SetCameraPos 40, 50, -60
  38.     TriSpace1.SetCameraOrient -40, -35, 0
  39. End Sub
  40. Private Sub Form_Resize()
  41.     TriSpace1.Width = Me.Width
  42.     TriSpace1.Height = Me.Height
  43. End Sub
  44.